<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InitUpdate54 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->integer('pending_money_brokerage')->index()->default(0)->comment('待结算佣金');
            $table->integer('pending_score_brokerage')->index()->default(0)->comment('待结算佣金');
            $table->integer('completed_money_brokerage')->index()->default(0)->comment('已结算佣金');
            $table->integer('completed_score_brokerage')->index()->default(0)->comment('已结算佣金');
            // $table->tinyInteger('status')->comment('1为正常 2为已拉黑')->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
